package cn.kgc.client;

import cn.kgc.base.dto.UmsRoleDTO;
import cn.kgc.commons.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @description:
 * @author: 石浩杰
 * @date: 2022-12-08 09:42
 */
@FeignClient(value = "mall-ums",path = "/ums/role",fallback = UmsRoleFeignClientImpl.class)
public interface UmsRoleFeignClient {
    @GetMapping("/getRole")
    Result<List<UmsRoleDTO>> getUmsRole(@RequestParam(name = "memberId") Long memberId);
}
